﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UserCenter.Console.Sdk.Results
{
    /// <summary>
    /// 结果基类
    /// </summary>
    abstract public class BaseResult
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 错误消息
        /// </summary>
        public string Message { get; set; }

        public string Code { get; set; }

        public override string ToString()
        {
            return $"{Success}\n{Message}";
        }
    }
}
